package com.sccl.tx;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.sccl.service.AccountService;

/**
 * @author 饶爽
 * @time 2019年9月8日 下午2:41:00
 * @version 1.0.0
 * 测试转账
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:/com/sccl/applicationContext.xml")
public class Demo {
    @Resource(name="accountService")
    private AccountService as;
    
    @Test
    public void fun1(){
        as.transfer(1, 2, 100d);
    }
}
